﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_lng")]
    [Serializable]
    public class Lng : ObjectBase<Lng>
    {
        public Lng() { }

        public Lng(Int32 pid, String lng, String lngtitle, String url, Int32 lockin, Int32 iswap, Int32 isopen, Int32 isuptype, Int32 ispack, String packname, String sitename, String keyword, String description, String copyright)
        {
            this.pid = pid;
            this.lng = lng;
            this.lngtitle = lngtitle;
            this.url = url;
            this.lockin = lockin;
            this.iswap = iswap;
            this.isopen = isopen;
            this.isuptype = isuptype;
            this.ispack = ispack;
            this.packname = packname;
            this.sitename = sitename;
            this.keyword = keyword;
            this.description = description;
            this.copyright = copyright;
            this.insert();
        }

        /// <summary>
        /// 排序字段,默认为50
        /// </summary>
        [Default(0), NotNull("请输入排序"), Column(Length = 10), TinyInt]
        public Int32 pid { get; set; }

        [Default(""), NotNull(""), Column(Length = 50)]
        public String lng { get; set; }

        [Default(""), NotNull(""), Column(Length = 100)]
        public String lngtitle { get; set; }

        [Column(Length = 200)]
        public String url { get; set; }

        [Default(0), NotNull(""), Column(Length = 1), TinyInt]
        public Int32 lockin { get; set; }

        [Default(0), NotNull(""), Column(Length = 1), TinyInt]
        public Int32 iswap { get; set; }

        [Default(1), NotNull(""), Column(Length = 1), TinyInt]
        public Int32 isopen { get; set; }

        [NotNull(""), Column(Length = 1), TinyInt]
        public Int32 isuptype { get; set; }

        [Default(0), NotNull(""), Column(Length = 1), TinyInt]
        public Int32 ispack { get; set; }

        [Column(Length = 100)]
        public String packname { get; set; }

        [Column(Length = 100), Default("")]
        public String sitename { get; set; }

        [Column(Length = 150)]
        public String keyword { get; set; }

        [Column(Length = 150)]
        public String description { get; set; }

        [Column(Length = 200)]
        public String copyright { get; set; }

        

    }
}
